package com.wen.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wen.pojo.*;
import com.wen.pojo.dto.OrdersDto;
import com.wen.pojo.Orders;
import com.wen.pojo.dto.*;

import java.util.List;

import com.wen.pojo.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wen.pojo.dto.ProductAndOrdersAndOrdersDetails;
import com.wen.pojo.dto.ProductAndOrdersAndOrdersDetailsDto;
import com.wen.pojo.dto.wen.*;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xie
 * @since 2023-04-24
 */
public interface OrdersService extends IService<Orders> {

    Page<OrdersDto> sel(OrdersDtoTiaoJian dto, Integer pageNum, Integer size);

    Page<OrdersANDConsumerANDMerchants> selAll(OrdersANDConsumerANDMerchantDto dto,Integer pageNum,Integer size);

    Page<ProductAndOrdersAndOrdersDetails> getSelectAll(ProductAndOrdersAndOrdersDetailsDto dto);

//    Page<ProductAndOrdersAndOrdersDetails> getSelectAll1(ProductAndOrdersAndOrdersDetailsDto dto);


    int addOrders(Orders orders);


   int  Or(OrdersDto ordersDto);

    Page<OrderAll> getSelectOrderAll(ProductAndOrdersAndOrdersDetailsDto dto);


    List<OrderAll> getSelectOrderById(Integer id);


    Page<DiaoBos> seldb(Integer pageNum, Integer size);

    IPage<TransferGoods> searchPage2(Page<TransferGoods> pageParam, TransferGoodsDto dto, Long pageNum, Long pageSize);

    Orders2 ordersByid(String id);

    List<OrderDetails2> OrderDetailslist(String id);

    boolean addPay(Pay pay);

    List<StockDetails> stocklist();

    boolean addPayDetails(PayDetails pay);

    void upStock(PayDetails payDetails);

    void upStock2(PayDetails payDetails);

    void upOrderState(String id);

    IPage<OrdersDto> selOrderState1(Long pageNum, Long pageSize);

    IPage<OrdersDto> selOrderState2(Long pageNum, Long pageSize);

    IPage<OrdersDto> selOrderState3(Long pageNum, Long pageSize);

    Boolean upOrderState3(String id);

}
